﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QL_Ykien.aspx.cs" Inherits="DOAN.Admin.QL_Ykien" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="content-right">
         <div class="title_right">
            <p class="fs24 cl2 fi font_time">
                <img src="../Imagine/icon_right_title.png" />Quản lý ý kiên</p>
        </div>
        <div class="register">
            <asp:Label ID="lblLoi" runat="server" Text=""></asp:Label></div>
        <div class="register mart22">
        <div class="text_box2">
            <asp:RadioButtonList runat="server" ID="rd_Ykien" Width="193px"  
                                               ForeColor="#000" RepeatDirection="Horizontal" >
                                           <asp:ListItem Text="Theo tên" Value="0"></asp:ListItem>
                                           <asp:ListItem Text="Theo nội dung" Value="1"></asp:ListItem>
                                         </asp:RadioButtonList>
                                         </div>
         <div class="text_box">
             <asp:TextBox ID="txtTimkiem" runat="server" Width="182px"></asp:TextBox>
         </div> 
         <div class="label">
             <asp:ImageButton ID="imgtk" runat="server"  
                 ImageUrl="~/Imagine/input_search.png" onclick="imgtk_Click" 
                 style="height: 22px"/>
         </div>  
            <div class="label">
             <asp:ImageButton ID="img_refesh" runat="server"  
                 ImageUrl="~/Imagine/icon_refresh.png" onclick="imgRe_Click" 
                 style="height: 22px"/>
         </div> 
        </div>
        
        <div class="register mart22">
            <asp:GridView runat="server" ID="griYkien" AutoGenerateColumns="False" 
                     EmptyDataText="Không có dữ liệu !"   onrowcommand="griYkien_RowCommand" AllowPaging="True" 
                        OnPageIndexChanging="gridCauhoi_PageIndexChanging"
                    CellPadding="4" GridLines="None" Width="679px" ForeColor="#333333">
                      <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                      <Columns>
                        <asp:TemplateField HeaderText="Mã ">
                           <ItemTemplate>
                             <asp:Label runat="server" ID="maykien" Text='<%#DataBinder.Eval(Container.DataItem,"Maykien") %>'>
                             </asp:Label>
                           </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="Tên người gửi ">
                           <ItemTemplate>
                             <asp:Label runat="server" ID="lblTen" Text='<%#DataBinder.Eval(Container.DataItem,"Tentaikhoan") %>'>
                             </asp:Label>
                           </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="Nội dung">
                           <ItemTemplate>
                             <asp:Label runat="server" ID="lblNoidung" Text='<%#DataBinder.Eval(Container.DataItem,"Noidung") %>'>
                             </asp:Label>
                           </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="Email">
                           <ItemTemplate>
                             <asp:Label runat="server" ID="lblEmail" Text='<%#DataBinder.Eval(Container.DataItem,"Email") %>'>
                             </asp:Label>
                           </ItemTemplate>
                        </asp:TemplateField>
                        
       
                        
                         <asp:TemplateField HeaderText="Xem">
                           <ItemTemplate>
                              <asp:ImageButton runat="server" ID="img_sua" CommandName="xem"
                                CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Maykien") %>' ImageUrl="~/icon/edit_profile.png" />
                           </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="Xóa">
                           <ItemTemplate>
                              <asp:ImageButton runat="server" ID="img_xoa" CommandName="xoa"
                                CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Maykien") %>' ImageUrl="~/icon/delete_user.png" />
                           </ItemTemplate>
                        </asp:TemplateField>
                        
                        
                      </Columns>
                      <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
                      <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                      <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                      <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                      <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
        </div>
        <asp:Panel ID="pnYkien" runat="server" Visible="false">
            <div class="register mart22">
                <div class="label">
                    <asp:Label ID="lblMa" runat="server" Text="Mã ý kiến" ></asp:Label>
                </div>
                <div class="text_box">
                   <asp:Label ID="lblmaykien" runat="server" Text=""></asp:Label>
                    </div>
            </div>
            <div class="register mart22">
                <div class="label">
                    <asp:Label ID="lblTen" runat="server" Text="Tên người gửi"></asp:Label>
                </div>
                <div class="text_box">
                    <asp:TextBox ID="txtTen" runat="server" Width="209px"></asp:TextBox></div>
            </div>
             <div class="register mart22">
                <div class="label">
                    <asp:Label ID="lblNoidung" runat="server" Text="Nội dung" ></asp:Label>
                </div>
                <div class="text_box">
                    <asp:TextBox ID="txtNoidung" runat="server" TextMode="MultiLine" Height="50px" 
                        Width="459px" ></asp:TextBox></div>
            </div>
             <div class="register mart22">
                <div class="label">
                    <asp:Label ID="lblEmail" runat="server" Text="Email"></asp:Label>
                </div>
                <div class="text_box">
                    <asp:TextBox ID="txtEmail" runat="server" Width="203px"></asp:TextBox></div>
            </div>
            <div class ="register mart22">
                <asp:Button ID="btLamlai" runat="server" Text="Hủy " 
                    onclick="btLamlai_Click" Width="61px" />
            </div>
        </asp:Panel>
    </div>
</asp:Content>


